package file;

import java.io.File;

public class DeleteDirDemo {
    public static void main(String[] args) {
        File dir = new File("demo");
        if (dir.exists()) {
            boolean result = dir.delete();
            System.out.println("目录已经删除"+result);
        }
        else{
            System.out.println("目录不存在");
        }
    }
}
